

import Home from '../component/home';
import Download from '../component/download';
import Technology from '../component/it-technology';
import Login from '../component/login';
import { Redirect } from 'react-router-dom';
import Main from '../component/main/main';
import Register from '../component/register';

const routers = [
    {
        path: "/",
        exact: true,
        render: () => (
            <Redirect to='/main'></Redirect>
        )
    },
    {
        path: "/login",
        component: Login
    },
{
        path: "/register",
        component: Register
    },
    {
        path: "/main",
        component: Main,
        route: [
            {
                path: "/main",
                exact: true,
                render: () => (
                    <Redirect to='/main/home'></Redirect>
                )
            },
            {
                path: "/main/home",
                component: Home
            },
            {
                path: "/main/download",
                component: Download
            },
            {
                path: "/main/technology",
                component: Technology
            }
        ]
    },
]

export default routers;